package uuid

import (
	"github.com/oklog/ulid/v2"
	"math/rand"
	"time"
)

func NewUlid() string {
	now := time.Now()
	return ulid.MustNew(ulid.Timestamp(now), ulid.Monotonic(rand.New(rand.NewSource(now.UnixNano())), 0)).String()
}
